// 正则全局替换
export const replaceAll = (str, find, replace) => {
    return str.replace(new RegExp(find, 'g'), replace);
}

// 获取图片地址
export const getImgUrl = (fileName) => {
    return new URL(`./icon/${fileName}`, import.meta.url).href
}
